import { JSX } from 'react';
import { Navigate, Route, Routes } from "react-router-dom";
import Framework from '../pages/Framework';
import MainFramework from '../pages/MainFramework';
import Login from '../pages/Login';
import Register from '../pages/Register';


function NulRouter(): JSX.Element {
  return (
    <Routes>
      <Route path='*' element={<Navigate replace to='/main/analyze' />} />
      <Route path='/login' element={<Login />} />
      <Route path='/register' element={<Register />} />
      <Route path='/main' element={<Framework />}>
        <Route path=':id' element={<MainFramework />} />
      </Route>
    </Routes>
  );
}

export default NulRouter;